<include file="Admin@Public:header" />
<div class="container-fuid ">
<form class="form-horizontal" method="post" role="form">
	<input type="hidden" name="id" value="{$id}">
	<div class="form-group">
		<label class="col-sm-2 control-label">主菜单名称：</label>
		<div class="col-sm-3">
			<input type="text" class="form-control" name="name" value="{$name}" placeholder="主菜单名称"></div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">上级主菜单：</label>
		<div class="col-sm-3">
			<select class="form-control" name="pid">
				<option value="0" <if condition="$item['id'] eq 0">selected</if>>一级菜单</option>
				<volist name="cate_list" id="item">
					<option value="{$item['id']}" <if condition="$item['id'] eq $pid">selected</if>>{$item['name']}</option>
				</volist>
			</select>
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">关联关键词：</label>
		<div class="col-sm-3">
			<input type="text" class="form-control" name="keyword" value="{$keyword}" placeholder="关联关键词"></div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">外链URL：</label>
		<div class="col-sm-6">
			<input type="text" class="form-control" name="url" value="{$url}" placeholder="外链URL"></div>
			<div class="help-block">如关键词为空时则使用url进行跳转</div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">排序：</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" name="sort" value="{$sort}" placeholder="排序"></div>
	</div>
	<div class="form-group">
		<div class="col-sm-offset-2 col-sm-10">
			<button type="submit" class="btn btn-default">确认提交</button>
		</div>
	</div>
</form>
</div>
<include file="Admin@Public:footer" />